<include file="Public:header" />
<!--会员信息-->
<div class="pad_lr_10">
	<div class="col_tab">
		<ul class="J_tabs tab_but cu_li">
			<li class="current">会员信息</li>
		</ul>
		<div class="J_panes">
			<div class="content_list pad_10">
				<table width="100%" cellspacing="0" class="table_form">
                    <tr>
                        <th>会员头像 :</th>
                        <td>
                            <a href="{$userInfo.head_ico}" target="_blank"><img src="{$userInfo.head_ico}" style="width: 100px;height: 80px;"></a>
                        </td>
                    </tr>
		            <tr>
						<th>用户名 :</th>
						<td>
							<input type="text" name="username" disabled="disabled" class="input-text" value="{$user.username}" size="20">
                        </td>
					</tr>
                    <tr>
                        <th>E-mail :</th>
                        <td><input type="text" name="user[email]" disabled="disabled" class="input-text" value="{$user.email}" size="20"></td>
                    </tr>
                    <tr>
                        <th>手机号 :</th>
                        <td><input type="text" name="user[mobile]" disabled="disabled" class="input-text" value="{$user.mobile}" size="20"></td>
                    </tr>

                    <tr>
                        <th>真实姓名 :</th>
                        <td><input type="text" name="info[true_name]" disabled="disabled" class="input-text" value="{$userInfo.true_name}" size="20"></td>
                    </tr>
                    <tr>
                        <th>性别 :</th>
                        <td>
                            <if condition="$userInfo['sex'] eq '1'">
                                <input type="text"  disabled="disabled" class="input-text" value="男" size="20">
                            <else />
                                <input type="text"  disabled="disabled" class="input-text" value="女" size="20">
                            </if>
                        </td>
                    </tr>
                    <tr>
                        <th>证件类型 :</th>
                        <td>

                            <input type="text"  disabled="disabled" class="input-text" value="{$id_type}" size="20">
                        </td>
                    </tr>
                    <tr>
                        <th>证件号码:</th>
                        <td><input type="text" name="info[id_code]" disabled="disabled" value="{$userInfo.id_code}" size="40" class="input-text"></td>
                    </tr>
                    <!--tr>
                        <th>教程程度 :</th>
                        <td>
                            <select id="edu" name="info[edu_level]">
                                <option value="0">请选择</option>
                                <volist name="conf['edu']" id='vo'>
                                    <option <php>if($userInfo['edu_level']==$key){</php> selected="selected" <php>}</php> value="{$key}">{$vo}</option>
                                </volist>
                            </select>
                        </td>
                    </tr-->
                    <!--tr>
                        <th>职业 :</th>
                        <td>
                            <select id="job" name="info[occupation]">
                                <option value="0">请选择</option>
                                <volist name="conf['job']" id='vo'>
                                    <option <php>if($userInfo['occupation']==$key){</php> selected="selected" <php>}</php> value="{$key}">{$vo}</option>
                                </volist>
                            </select>
                        </td>
                    </tr-->

                    <tr>
                        <th>公司名称 :</th>
                        <td><input type="text" name="info[company_name]" disabled="disabled" class="input-text" value="{$userInfo.company_name}" size="40"></td>
                    </tr>
                    <tr>
                        <th>qq :</th>
                        <td><input type="text" name="info[qq]" disabled="disabled" class="input-text" value="{$userInfo.qq}" size="20"></td>
                    </tr>
                    <!--tr>
                        <th>个人主页 :</th>
                        <td><input type="text" name="info[website]" class="input-text" value="{$userInfo['website']}" size="30"></td>
                    </tr>
                    <tr>
                        <th>MSN :</th>
                        <td><input type="text" name="data[msn]" class="input-text" value="{$data.msn}" size="20"></td>
                    </tr>
                    <tr>
                        <th>生日 :</th>
                        <td><input type="text" name="info[birthday]" class="input-text" value="{$userInfo['birthday']}" size="20"> 2014-01-22</td>
                    </tr-->
                    <tr>
                        <th>联系地址 :</th>
                        <td><input type="text" name="info[address]" disabled="disabled" class="input-text" value="{$userInfo['address']}" size="40"></td>
                    </tr>
				</table>
                <div class="mt10">
                    <if condition="$user['status'] eq 0">
                        <button class="fb" onclick="examine({$user.id}, 'pass')">通过</button>
                        <button class="fb" onclick="examine({$user.id}, 'notpass')">不通过</button>
                    </if>
                </div>
            </div>
        </div>

	</div>
</div>
<include file="Public:footer" />
<script>
    $('.J_cate_select').cate_select('请选择');

</script>
<script src="__STATIC__/js/formvalidator.js"></script>
<script>
    function examine (uid, str){
        var url = "{:U ('agent/examine')}";
        var data = {uid:uid,str:str};
        $.post (url, data, function (reponse){
            alert (reponse.msg);
            location.reload (1);
        },'json');
    }

</script>
</body>
</html>